package org.tangerinejunction.imstats.data;

import java.util.ArrayList;
import java.util.HashSet;

import org.tangerinejunction.imstats.logs.LogFile;

/**
 * A utility class for keeping track of sets of accounts.
 * Used in @link Entity.
 * 
 * @author meganthorsen
 */
public class AccountSet extends HashSet<Account>
{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5378065738995772433L;
	
	/**
	 * 
	 * @return	the list of LogFiles in this AccountSet
	 */
	public ArrayList<LogFile> getLogFiles()
	{
		ArrayList<LogFile> allFiles = new ArrayList<LogFile>();
		for (Account account : this)
			allFiles.addAll(account.getLogFiles());
		return allFiles;
	}
}
